<template>
  <DisplayComponent :rawHtml="rawHtml">
    <vi-tooltip content="This is a tooltip">
      <vi-button class="demo-button">
        Need Help?
      </vi-button>
      <template #tooltip>
        <i>💡</i><strong>Get assistance</strong> with your questions!

      </template>
    </vi-tooltip>
  </DisplayComponent>
</template>

<script setup lang="ts">

import DisplayComponent from '@/layouts/DisplayComponent.vue';

const rawHtml = `
<template>
  <vi-tooltip content="This is a tooltip">
    <vi-button class="demo-button">
      Need Help?
    </vi-button>
    <template #tooltip>
      <i>💡</i><strong>Get assistance</strong> with your questions!

    </template>
  </vi-tooltip>
</template>
`;
</script>


<style scoped>
.demo-button {
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.demo-button:hover,
.demo-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

i {
  margin-right: 6px;
  color: #6366f1;
}

strong {
  animation: glow 2s infinite;
  font-weight: 600;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  }

  50% {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
  }

  100% {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  }
}
</style>
